﻿@model IEnumerable<Epi.Web.MVC.Models.FormInfoModel>
@*<p>
        @Html.ActionLink("Create New", "Create")
    </p>*@
<div class="divcontents">
    <h3>Please select a form.</h3>
    @foreach (var item in Model)
    {
        var divClass = "metro-tile " + " Org-" + item.OrganizationId + " metro-tile2 ";

        if (item.IsOwner)
        {
            divClass += "metro-design ";
        }
        else
        {
            divClass += "metro-design ";
        }

        <button class="@divClass" type=submit id="@item.FormId" data-formid="@item.FormId" data-theme="@divClass" value="@item.FormId" name="formid">
            <h3>@item.FormName</h3>
        </button>




        @* @Ajax.ActionLink(@item.FormName, "ReadResponseInfo", "Home", new AjaxOptions
            {
                UpdateTargetId = "right",
                InsertionMode = InsertionMode.Replace,
                HttpMethod = "Post"
            })      *@

        @* @Html.ActionLink(
                @item.FormName,
                "ReadResponseInfo",
                "Home",

                new { formid = @item.FormId },
                          new { @class = @divClass }
            )            ;  *@

    }
</div>
